const mogoose = require('mongoose')

const schema = new mogoose.Schema({
    username: { type:String },
    password: {
        type: String,
        select: false,
        // 对密码进行散列加密保存
        // set(val){
        //     return require('bcrypt').hashSync(val, 10)
        // }
    }
})

module.exports = mogoose.model('AdminUser', schema)
